
extends Sprite2D
#
##func _ready():
	##region_enabled = true
###sefl;emfoe
#var 答案 
#var original_string
#func test():
	#var 乘 = "*" 
	#var k = 3 
	##var N = original_string.length()
#
#
#
#var N  =  0 
#var k  =  0
#var nums = ""
#
#func _ready():
	#nums = "379789"
	##test();
#
#@onready var Icon = %Icon
#@onready var Icon2 = %Icon2
#@onready var Icon3 = %Icon3
#@onready var Icon4 = %Icon4
@onready var she_tou = %蛇头
@onready var 边界节点 = [%Icon,%Icon2,%Icon3,%Icon4]
#(evnet):

#func _process(delta):
	##
	#if she_tou and self.position.distance_to(边界节点.position) < 5:    get_tree().paused = true
		##游戏失败("贪吃蛇离开了屏幕!")
		#break  # 一旦检测到碰撞，就退出循环

#func 游戏失败(原因):
	#print("游戏失败: " + 原因)
	#
	# 暂停游戏
